package cn.gov.msa.dao;

import java.util.List;

import cn.gov.msa.model.AuditOpinion;
import cn.gov.msa.model.VSelectAduitOpinion;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public interface AuditOpinionMapper {
    int deleteByPrimaryKey(String opinionid);

    int insert(AuditOpinion record);

    int insertSelective(AuditOpinion record);

    AuditOpinion selectByPrimaryKey(String opinionid);

    int updateByPrimaryKeySelective(AuditOpinion record);

    int updateByPrimaryKey(AuditOpinion record);
    

    List<VSelectAduitOpinion> selectData(VSelectAduitOpinion record);

    AuditOpinion selectCorrectionOpintion(String applyno);
    
    AuditOpinion selectAcceptOpintion(AuditOpinion record);

    AuditOpinion selectLastData(String businessid);
    
    List<VSelectAduitOpinion> selectJointlySignInfo(String instanceid);
    
    JSONArray selectJointlySignOpinion(JSONObject param);
    
    AuditOpinion selectFirstTrialOpinion(String businessid);
}